<head>
    <meta charset="utf-8" />
    <meta name="viewport"
        content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <style>
        body,
        html {
            width: 100%;
            height: 100%;
            overflow: hidden;
            font-family: PingFangSC-Regular, 'PingFang';
        }

        body,
        * {
            margin: 0;
            padding: 0;
        }
    </style>

</head>

<body>

    <div id="form"></div>

    <div id="div1"></div>
    <br/>
    <div id="div2"></div>
    <br/>
    <div id="div3"></div>
    <br/>
    <div id="div4"></div>



    <!-- <form name="punchout_form" method="post" action="https://openapi.alipay.com/gateway.do?app_cert_sn=066a5c96528cb08fc650ebef2ad1de8c&charset=UTF-8&alipay_root_cert_sn=687b59193f3f462dd5336e5abf83c5d8_02941eef3187dddf3d3b83462e1dfcf6&method=alipay.trade.wap.pay&sign=NMIPkrM7Ol%2Fti7L0hCrrw%2Brf75K0VIEqj%2FnBLh%2BfjzlomGJqY1HgCVhp5pbj97%2FkxH3WLqdWYFXRXvq1dFLhIsjjkYm4gx%2BeyXQX70gyoemxAGNGqPUmG0iXrEw38vCTuFguPWsbIKHyeoF4pQ5cvugVXxbKNZB6%2FYKK8HE6XHIytkvwyTz0JpphLtFphz%2FN0fxwQdU194UiUH3g0oD43z5J8L3c0GCuR9DXaPfGYrvvUKqLMdxQkS%2F3e5WGEBtJaolb%2F871ZYVFyaV6i5g4yUqC8LNLOMxWrRlctkOuRhrE717RyzEHtGtqwqNx4C5fZ8030m4iqaWWZY4REoQjhQ%3D%3D&return_url=slimcircle%3A%2F%2F&notify_url=http%3A%2F%2F116.205.242.211%3A8080%2Fpay%2Fcallback&version=1.0&app_id=2021004108675639&sign_type=RSA2&timestamp=2023-12-14+17%3A07%3A37&alipay_sdk=alipay-sdk-java-dynamicVersionNo&format=json">
        <input type="hidden" name="biz_content" value="{&quot;body&quot;:&quot;加入群&quot;,&quot;out_trade_no&quot;:&quot;a5463c694aa34d1f85045d30d6657373&quot;,&quot;passback_params&quot;:&quot;1&quot;,&quot;product_code&quot;:&quot;QUICK_WAP_PAY&quot;,&quot;subject&quot;:&quot;加入群&quot;,&quot;total_amount&quot;:&quot;0.01&quot;}">
        <input type="submit" value="立即支付" style="display:none" >
        </form> -->
            <!-- tm-html组件使用 -->
            <script type="text/javascript" src="./js/axios.min.js"></script>
            <script type="text/javascript">
                // 基于准备好的dom，初始化echarts实例

                window.init = function (merOrderId,payType,token) {
                    div1.innerHTML = merOrderId;
                    div2.innerHTML = payType;
                    div3.innerHTML = token;
                    form.innerHTML = '';
                    // let obj = JSON.parse(jsonObj);

                    // let str = obj.str;

                    axios({
                        method: 'post',
                        headers: {
                            "Content-Type": "application/json;charset=utf-8",
                            'token':token,
                        },
                        url: 'http://52pp365.com/orderInfo/pay',
                        data: {
                            merOrderId:merOrderId,
                            payType:payType,
                            payMethod:'WAP',
                        }
                    }).then((res)=>{
                        const htmlStr = res.data.data.payParam;
                        form.innerHTML = htmlStr;  //res.data是返回的表单
                        //document.body.appendChild(div);
                        window.setTimeout(function(){
                            document.forms[0].submit()
                        },0);
                    });




                }
            </script>
</body>